From 5f1b8a31c23d8eeacae1ca18cbcb9f8b6d824eaa Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 26 Mar 2023 21:06:09 +0200 Subject: [PATCH] treeexpander: Add docs note about setting GtkListItem::focusable --- gtk/gtktreeexpander.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gtk/gtktreeexpander.c b/gtk/gtktreeexpander.c index 86230e4028..66a520b95c 100644 --- a/gtk/gtktreeexpander.c +++ b/gtk/gtktreeexpander.c @@ -45,6 +45,11 @@ * "listitem.toggle-expand" actions are provided to allow adding custom * UI for managing expanded state. * + * It is important to mention that you want to set the + * [property@Gtk.ListItem:focusable] property to FALSE when using this + * widget, as you want the keyboard focus to be in the treexpander, and not + * inside the list to make use of the keybindings. + * * The `GtkTreeListModel` must be set to not be passthrough. Then it * will provide [class@Gtk.TreeListRow] items which can be set via * [method@Gtk.TreeExpander.set_list_row] on the expander. -- 2.30.2